import request from '../utils/request'

//接口名称	接口路径	接口分类	状态	tag
// 职位分页列表	
export const pageList = query => {
    return request.post('/zsrencai/api/sys/admin/job/list/page', query)
}
// 职位刷新
export const refresh = query => {
    return request.post('/zsrencai/api/sys/admin/job/refresh', query)
}
// 职位删除/zsrencai/api/company/job/delete
export const jobDelete = query => {
    return request.post('/zsrencai/api/sys/admin/job/delete', query)
}
export const jobUpdate = query => {
    return request.post('/zsrencai/api/sys/admin/job/update', query)
}
// 审核职位 /zsrencai/api/company/job/examine
export const examine = query => {
    return request.post('/zsrencai/api/sys/admin/job/examine', query)
}
export const getJobInfo = id => {
    return request.get('/zsrencai/api/sys/admin/job/get/' + id)
}
export const getDict = id => {
    return request.get('/zsrencai/api/sys/admin/dict/get/' + id)
}
export const getTrade = () => {
    return request.get('/zsrencai/api/sys/admin/jc/find/tree')
}


// ------------------  职位列表一些接口 wangating start--------------------------------

// 新增退伍军人职位
export const addInsert = query => {
    return request.post('/zsrencai/api/sys/admin/job/veteran/insert', query)
}
// 删除退伍军人职位
export const deleteVeterans = query => {
    return request.post('/zsrencai/api/sys/admin/job/veteran/delete', query)
}
// 根据公司ID和职位ID查询数据(不过滤已删除)  /zsrencai/api/sys/admin/job/veteran/get/job/veteran/by/companyid/and/jobid/notexclude/delete
export const deleteNotexcludeById = query => {
    return request.post('/zsrencai/api/sys/admin/job/veteran/get/job/veteran/by/companyid/and/jobid/notexclude/delete', query)
}
// 学历字典
export const education = () => {
    return request.get('/zsrencai/api/sys/admin/dict/find/education')
}
//工作经验字典
export const work_exp = () => {
    return request.get('/zsrencai/api/sys/admin/dict/find/work_exp')
}
// 工作区域zsrencai/api/sys/admin/pr/find/tree/430100,430200,430300 (新)
export const work_area = () => {
    return request.get('zsrencai/api/sys/admin/pr/find/tree/430100,430200,430300,333333')
}
//代发职位接口
export const releaseJob = (query) => {
    return request.post('zsrencai/api/sys/admin/job/release', query)
}
// 刷新职位接口
export const refreshJob = (query) => {
    return request.post('/zsrencai/api/sys/admin/job/refresh', query)
}
// ------------------  职位列表一些接口 wangating   end--------------------------------

// export const pageList = query => {
//     return request.post('zsrencai/api/sys/admin/job/list/page',query)
// }
// export const pageList = query => {
//     return request.post('zsrencai/api/sys/admin/job/list/page',query)
// }









